using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// LoaiHinh object for NHibernate mapped table LoaiHinh.
    /// </summary>
    [Serializable]
    public class LoaiHinh : DomainObject<System.Int32>
    {
        private System.String _TenLoaiHinh;
        private System.Boolean _TrangThai;
        private IList<TiepDan> _TiepDans = new List<TiepDan>();

        public LoaiHinh()
        {
        }

        public LoaiHinh(System.Int32 id)
        {
            base.ID = id;
        }

         public virtual System.String TenLoaiHinh {
             get { return _TenLoaiHinh; }
             set { _TenLoaiHinh = value;}
         }

         public virtual System.Boolean TrangThai {
             get { return _TrangThai; }
             set { _TrangThai = value;}
         }

         public virtual IList<TiepDan> TiepDans{
             get { return _TiepDans; }
             set { _TiepDans = value; }
         }


        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

     }
}
